package cn.gary.oaserver.service;

import cn.gary.oaserver.entity.TAdmin;
import cn.gary.oaserver.entity.TRole;
import cn.gary.oaserver.params.PageParams;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gary
 * @since 2024-03-15
 */
public interface ITAdminService extends IService<TAdmin> {

    public TAdmin getAdminByUsername(String username);

    IPage<TAdmin> getAdminListByQuery(PageParams pageParams, String query);

    List<TRole> findRolesAndMenusByAdminId(Integer adminId);

    List<String> getMenuUrlByAdminId(Integer id);
}
